<!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=latin1">
        <link rel="stylesheet" type="text/css" href="padrao.css" />
        <title></title>
        <script type="text/javascript">
            // This function gets the current time and injects it into the DOM
            function updateClock() {
                // Gets the current time
                var now = new Date();

                // Get the hours, minutes and seconds from the current time
                var hours = now.getHours();
                var minutes = now.getMinutes();
                var seconds = now.getSeconds();

                // Format hours, minutes and seconds
                if (hours < 10) {
                    hours = "0" + hours;
                }
                if (minutes < 10) {
                    minutes = "0" + minutes;
                }
                if (seconds < 10) {
                    seconds = "0" + seconds;
                }

                // Gets the element we want to inject the clock into
                var elem = document.getElementById('clock');

                // Sets the elements inner HTML value to our clock data
                elem.innerHTML = hours + ':' + minutes + ':' + seconds;
            }
        </script>
    </head>
    <body onload="setInterval('updateClock()', 200);">-->
        <?php
        session_start();
        $data = date('d/m/Y');
        $area = $_SESSION[area];

        ?>
        <table class="infobox">
            <tr>
                <td>Usuario: <?php if ($login != "") {echo "$login";}?></td>
                <td><?php echo " $data ";?></td>
<!--                <td id="clock"></td>-->
                <td>Area: <?php echo "$area";?></td>
                <td></td>
                <td>
                    <?php
                    if($area == "Portaria"){
                    echo'
                    <form method="POST" action="pesquisa_placa.php">
                        <input value="home" type="submit">
                    </form>
                    ';
                    } else if ($area == "Escritorio"){
                    echo'
                    <form method="POST" action="pesquisa_empresas.php">
                        <input value="home" type="submit">
                    </form>
                    ';
                    }
                    ?>
                    </td>
                <td>
                    <form method="POST" action="../index.php">
                        <input value="Encerrar Sessao" type="submit">
                    </form>
                </td>
            </tr>

        </table>
        <br>
<!--    </body>
</html>-->


